﻿using AiMei.Redis.Core;
using System;
using StackExchange.Redis;
using System.Diagnostics;

namespace ConsoleApp1
{
    class Program
    {
        static void Main()
        {
            StackExchange.Redis.ConnectionMultiplexer connectionMultiplexer = ConnectionMultiplexer.Connect("127.0.0.1:6379");
            IDatabase database = connectionMultiplexer.GetDatabase();
            Stopwatch stopwatch = new Stopwatch();
            stopwatch.Restart();

            for (int i = 0; i < 100000; i++)
            {
                var value= database.StringGet("db");
                Console.WriteLine(value);
            }
            stopwatch.Stop();
            Console.WriteLine("耗时：{0}", stopwatch.ElapsedMilliseconds);
            Console.ReadLine();
        }

        
    }
}
